package com.cms.controller.front;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
/**
 * Controller - 页面
 *
 *
 *
 */
@Slf4j
@Controller("frontPageController")
@RequestMapping("/page")
public class PageController extends BaseController {

    /**
     * 页面
     */
    @RequestMapping
    public String index(String html, ModelMap modelMap) {
        log.info("页面跳转....");
        modelMap.addAttribute("html", html);
        return "/templates/"+getCurrentTemplate()+"/"+html+".html";
    }

}
